﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdatePwd.aspx.cs" Inherits="UpdatePwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Change password</title>
    <link href="/en/css/popup.css" rel="stylesheet">
    <script src="/en/js/jquery-1.6.4.min.js" type="text/javascript"></script>
    <script src="/en/js/jquery.colorbox-min.js" type="text/javascript"></script>
    <script>        var g_langID = 1033;</script>
    <script src="/js/uknow_register_constants.js" type="text/javascript"></script>
    
    <script language="javascript">
    <!--
        function validate() {
            var name = $('#TextBox1').val();
            var pwd = $('#TextBox2').val();
            var passPwd = $('#TextBox3').val();
            if (name == null || name == "") {
               window.location.href = "/en/home.html";
               return false;
            }
            if (pwd == null || pwd == "") {
                alert(MyProfileValidate.passNull)
                return false;
            }
            if (pwd.length < 6 || pwd.length > 18) {
                alert(MyProfileValidate.pwlength)
                return false;
            }
            if (/^([a-z]|[0-9]|[_]){6,18}$/.test(pwd)) {
                alert(MyProfileValidate.pwformat);
                return false;
            }
            if (pwd != passPwd) {
                alert(MyProfileValidate.pwcoflct)
                return false;
            }
            return true;
        }
    //-->
    </script>
</head>
<body>
    <div id="changepwd">
        <div id="close">
            <a href="javascript:;" onclick="$.fn.colorbox.close();">
                <img src="/en/images/icon_close_blue.gif" alt=""></a></div>
        <form id="form1" runat="server">
        <dl>
            <dt>Username:</dt>
            <dd>
                <input name="" id="TextBox1" type="text" runat="server" /><img style="display: none"
                    src="/en/images/icon_true.gif" alt="" /></dd>
            <dt>New password:</dt>
            <dd>
                <input name="" id="TextBox2" type="password" runat="server" /><img style="display: none"
                    src="/en/images/icon_false.gif" alt="" /></dd>
            <dt>Confirm New password:</dt>
            <dd>
                <input name="" id="TextBox3" type="password" runat="server" /><img style="display: none"
                    src="/en/images/icon_true.gif" alt="" /></dd>
        </dl>
        <div class="changebtn">
            <asp:Button runat="server" ID="Button1" OnClick="Button1_Click1" OnClientClick="return validate();" />
        </div>
        </form>
    </div>
</body>
</html>
